package com.wondersgroup.fjzlpt.org.controller.view.fwxx;

import javax.servlet.http.HttpServletRequest;

import com.quick.framework.util.QuickPrincipalUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.alibaba.fastjson.JSONObject;
import com.quick.framework.boot.web.wapper.QuickPrincipal;

@Controller
@RequestMapping("fwxx")
public class FwxxController {
	
	@RequestMapping("/index.html")
	public String index(HttpServletRequest request)
	{
        JSONObject json = new JSONObject();
        json.put("JGXZQHDM", QuickPrincipalUtils.getXzqhdm(request));
        json.put("PTJGID", QuickPrincipalUtils.getPtjgID(request));
        request.setAttribute("userInfo", json);
		return "fwxx/index";
	}
	
	@RequestMapping("/manager.html")
	public String manager(HttpServletRequest request)
	{
        JSONObject json = new JSONObject();
		json.put("JGXZQHDM", QuickPrincipalUtils.getXzqhdm(request));
        json.put("WSJGLBDM", QuickPrincipalUtils.getJglbdm(request));
        json.put("PTJGID", QuickPrincipalUtils.getPtjgID(request));
        json.put("YLJGMC", QuickPrincipalUtils.getUserinfoByKey(request, "YLJGMC"));
        request.setAttribute("userInfo", json);
		return "fwxx/manager";
	}
	
	@RequestMapping("/detail.html")
	public String detail()
	{
		return "fwxx/detail";
	}
}
